-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comiler fixes #19953
Comiler fixes #19953
Conversation
Previously, `listLazyRoute` would store invalid information in a compiler internal cache, which lead to incorrect paths that were used during emit. This commit fixes this.
This prevents errors reported against `.ngfactory.ts` files show up as the result of running `ngc`. Closes angular#19935
You can preview ae24430 at https://pr19953-ae24430.ngbuilds.io/. |
@@ -214,6 +214,8 @@ export function performWatchCompilation(host: PerformWatchHost): | |||
host.reportDiagnostics( | |||
[createMessageDiagnostic('Compilation complete. Watching for file changes.')]); | |||
} else { | |||
// clear out the cachedProgram as we can only use it as the `oldProgram` 1x. | |||
cachedProgram = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
save the a local copy of this and set it to undefined
before calling performCompilation
This also changes the compiler so that we throw less often on structural changes and produce a meaningful state in the `ng.Program` in case of errors. Related to angular#19951
b778358
to
67b2ce6
Compare
You can preview b778358 at https://pr19953-b778358.ngbuilds.io/. |
You can preview 67b2ce6 at https://pr19953-67b2ce6.ngbuilds.io/. |
…ngular#19953)" This reverts commit 957be96.
…ngular#19953)" This reverts commit 957be96. This broke error reporting: instead of a real error message, we just get an error that a non-existing ngfactory.ts file is missing.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.